home *** CD-ROM | disk | FTP | other *** search
- Path: gate.itron.com!usenet
- From: ronald.ten-hove@itron.com (Ron Ten-Hove)
- Newsgroups: comp.lang.c++
- Subject: Re: Q; Has anyone ever attempted to implement persistent objects?
- Date: 7 Feb 1996 16:21:19 GMT
- Organization: Itron Inc.
- Message-ID: <4fajhv$po0@gate.itron.com>
- References: <4f688s$ctc@news.cc.geneseo.edu>
- Reply-To: ronald.ten-hove@itron.com (Ron Ten-Hove)
- NNTP-Posting-Host: itron12-23.itron.com
- X-Newsreader: IBM NewsReader/2 v1.02
-
- In <4f688s$ctc@news.cc.geneseo.edu>, Peter Denecke <prd97> writes:
- >I was wondering if anyone ever attempted to implement a persistent objects
- >system, that is, objects that can exist beyond run time. If so, could you give
- >an overview of your implementation and describe the problems you faced in
- >developing it?
-
- There are several approaches that I have been involved with.
-
- 1. Use a data base. You can use an O0DBMS, or RDBMS.
- I have used the latter, using "business objects" to
- hide the data base system, and give reasonable behaviour to
- what is otherwise dumb data from the DB.
-
- The logistics of synchronising the business objects with
- a shifting database schema are troublesome. The demands
- of O-O can force one to violate the normalisation rules
- for a RDBMS. Referential integrity is difficult to
- design in. One can create deadlock situations in many
- non-obvious ways.
-
- 2. Use a third-party package. The RogueWave Tools.h++ provides
- an excellent framework for "persisting" objects. Other
- libraries have similar mechanisms.
-
- This is very convenient if you are already using the library,
- but a pain if you are not.
-
- 3. Roll your own. Time consuming, error-prone, and definitely
- to be done only in desperation. Sometimes needed to conform
- to some really odd requirements, such as externally specified
- file formats for the persistance mechanism.
-
- -Ron
-
-
-